package com.sk1.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.sk1.service.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@RequestMapping("/")
@Controller
public class IndexController {


    @Reference()
    private UserService userService;

    @RequestMapping
    @ResponseBody
    public Object index() {
        userService.getAllUser();
        return userService.getAllUser();
    }

    @RequestMapping("test")
    @ResponseBody
    public Object test() {
        return userService.returnSomethings();
    }


}
